|
Foxit PDF SDK
|
继承自 FoxitPDFSDKPython3._object .
Public 成员函数 | |
| def | NeedToReplace (search_text, replace_text, current_page_index, text_rect_array) |
| 用于验证是否需要替换文本的回调函数。 更多... | |
| def | Release () |
| 用于释放当前回调对象本身的回调函数。 更多... | |
此类表示用于替换的回调对象。 此类中的所有纯虚函数都用作回调函数,应由用户实现。
| def FoxitPDFSDKPython3.ReplaceCallback.NeedToReplace | ( | search_text, | |
| replace_text, | |||
| current_page_index, | |||
| text_rect_array | |||
| ) |
用于验证是否需要替换文本的回调函数。
| [in] | search_text | 搜索文本。不会为空。 |
| [in] | replace_text | 要替换的文本。不会为空。 |
| [in] | current_page_index | 当前页面索引。有效范围:从 0 到 (count-1)。count 由 PDF 文档的函数 FoxitPDFSDKPython3.PDFDoc.GetPageCount 返回。 |
| [in] | text_rect_array | 找到的文本矩形数组。 |
| def FoxitPDFSDKPython3.ReplaceCallback.Release | ( | ) |
用于释放当前回调对象本身的回调函数。